package com.neusoft.neuiotms.dcom.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.neusoft.bizcore.web.jpa.model.AbstractModel;
import com.neusoft.bizcore.web.jpa.model.Comment;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@Entity
@org.hibernate.annotations.Table(appliesTo = "neuiot_duty_arrangement_group", comment = "值班安排组详细表")
@Table(name = "neuiot_duty_arrangement_group")
public class DutyArrangementGroup extends AbstractModel {

    private static final long serialVersionUID = 1L;

    /** 关联值班安排 */
    @ManyToOne
    private DutyArrangement group;

    /** 关联组 */
    @ManyToOne
    private TeamGroup teamGroup;

    /** 小组顺序 */
    @NotNull(message = "小组顺序不能为空")
    @Comment("int(11) NULL COMMENT '小组顺序'")
    private int groupNumber;
}
